﻿using System;
using System.Collections.Generic; 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class APP_Controls_Buy_Right_Tab : System.Web.UI.UserControl
{
    protected Model.LotteryAnnouncement ssq = null;
    protected string[] SSQList = null;
    protected string SSQblue = null;
    protected Model.LotteryAnnouncement dlt = null;
    protected string[] DLTList = null;
    protected string[] DLTblue = null;
    protected Model.LotteryAnnouncement fc = null;
    protected string[] fcList = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        //双色球
        ssq = BLL.LotteryAnnouncement.Prv(1);
        if (ssq != null)
        { 
            string[] ssqflaglist = ssq.LotteryNo.Split('+');
            SSQList = ssqflaglist[0].Split(',');
            SSQblue = ssqflaglist[1];
        }
        dlt = BLL.LotteryAnnouncement.Prv(2);
        if (dlt != null)
        { 
            string[] ssqflaglist = dlt.LotteryNo.Split('+');
            DLTList = ssqflaglist[0].Split(',');
            DLTblue = ssqflaglist[1].Split(',');
        }
        fc = BLL.LotteryAnnouncement.Prv(5);
        if (fc != null)
        { 
            fcList = fc.LotteryNo.Split(',');
        }
    }
    public string getWeek(DateTime time)
    {
        string weekstr = time.DayOfWeek.ToString();
        if (weekstr.Equals("Monday")) { weekstr = "周一"; }
        else if (weekstr.Equals("Tuesday")) { weekstr = "周二"; }
        else if (weekstr.Equals("Wednesday")) { weekstr = "周三"; }
        else if (weekstr.Equals("Thursday")) { weekstr = "周四"; }
        else if (weekstr.Equals("Friday")) { weekstr = "周五"; }
        else if (weekstr.Equals("Saturday")) { weekstr = "周六"; }
        else if (weekstr.Equals("Sunday")) { weekstr = "周日"; }
        return weekstr;
    }
}